package priv.lhy.securitydemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lihy
 * date: 2019/10/4 14:52
 * description:
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/info")
    public @ResponseBody String getInfo(){
        return "this is info's page";
    }
}
